FROM python:3.9.2
WORKDIR app
COPY ./app /app
RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --target=/usr/local/lib/python3.9/site-packages --upgrade
RUN Restart=always

# 设置容器端口号
EXPOSE 5001

# 设置环境变量
ENV SERVER_PORT 5001
ENV SCHEDULER_SECONDS 60
ENV BASIC_AUTH1 "admin"
ENV BASIC_AUTH2 "luckserver"

ENV AGENT_ID 804578772
ENV APP_KEY "dingkwmfrbsv0cencgb9"
ENV APP_SECRET "_OVByoifueYAH0X6mAQjleWfgFhB0cfZ3v4MNgAHrfjYG-a_u4ULXbN9ujdpoVOe"

ENV DINGTALK_APP_KEY "aee45ec2-9105-409a-ac44-2a2abc827541"
ENV DINGTALK_APP_SECRET "17297cae-cf7e-43d6-97bc-0487ad22c68a"
ENV DINGTALK_USER_FILTER_TYPE "user_id"
ENV DINGTALK_URL "http://127.0.0.1:5005"
ENV DINGTALK_URL_BASIC_AUTH1 "admin"
ENV DINGTALK_URL_BASIC_AUTH2 "luckserver"
ENV DINGTALK_ROBOT_MSG_TYPE "text"
ENV DINGTALK_ROBOT_SECRET_1 "SEC108c2176b230090e8bede00717d04e8455aabb0fe5a747eddb42b17a1d385416"
ENV DINGTALK_ROBOT_ACCESS_TOKEN_1 "7144ea46a2a09b877935eda8171c1e872e7ee0990fbf45b2e18d9927a3442ade"
ENV DINGTALK_ROBOT_SECRET_2 ""
ENV DINGTALK_ROBOT_ACCESS_TOKEN_2 ""
ENV DINGTALK_ROBOT_SECRET_3 ""
ENV DINGTALK_ROBOT_ACCESS_TOKEN_3 ""
ENV MQ_RPC_API_BASIC_AUTH1 "admin"
ENV MQ_RPC_API_BASIC_AUTH2 "luckserver"
ENV MQ_RPC_API_1 "http://127.0.0.1:31902"
ENV MQ_RPC_API_2 ""
ENV MQ_RPC_API_3 ""
ENV MQ_RPC_API_4 ""
ENV MQ_RPC_API_5 ""
ENV MQ_RPC_API_6 ""
ENV MQ_RPC_API_7 ""
ENV MQ_RPC_API_8 ""
ENV MQ_RPC_API_9 ""
ENV MQ_RPC_API_10 ""
ENV MQ_APPLICATION_INCLUSIONS "com.luckyun.ams/com.luckyun.bpm/com.luckyun.dydoc/com.luckyun.wms"
ENV MQ_APPLICATION_EXCLUSIONS "com.luckyun.ams/com.luckyun.wms"
ENV MQ_APPLICATION_1 "物资子系统/com.luckyun.wmssub/all"
ENV MQ_APPLICATION_2 "生产调度子系统/com.luckyun.tpsms/all"
ENV MQ_APPLICATION_3 "乘客事物子系统/com.luckyun.pss/all"
ENV MQ_APPLICATION_4 "项目管理子系统/com.luckyun.pjms/all"
ENV MQ_APPLICATION_5 "成本管理子系统/com.luckyun.coms/all"
ENV MQ_APPLICATION_6 "固资管理子系统/com.luckyun.ams/all"
ENV MQ_APPLICATION_7 "站务子系统/com.luckyun.stms/all"
ENV MQ_APPLICATION_8 "乘务子系统/com.luckyun.cdms/all"
ENV MQ_APPLICATION_9 "门户子系统/com.luckyun.bls/all"
ENV MQ_APPLICATION_10 "排班子系统/com.luckyun.skd/all"
ENV MQ_APPLICATION_11 "348系统/com.luckyun.basic/023405250820658815,053868124024016394"
ENV MQ_APPLICATION_12 "348系统/com.luckyun.craft/all"
ENV MQ_APPLICATION_13 "348系统/com.luckyun.manage/all"
ENV MQ_APPLICATION_14 "348系统/com.luckyun.outsourcing/all"
ENV MQ_APPLICATION_15 "348系统/com.luckyun.pdplan/all"
ENV MQ_APPLICATION_16 "348系统/com.luckyun.quality/all"
ENV MQ_APPLICATION_17 "348系统/com.luckyun.rotables/all"
ENV MQ_APPLICATION_18 "348系统/com.luckyun.taskpool/all"
ENV MQ_APPLICATION_19 "综报子系统/com.luckyun.ocras/all"
ENV MQ_APPLICATION_20 "待办服务/com.luckyun.todo/all"
ENV MQ_APPLICATION_21 "安全子系统/com.luckyun.tsms/all"
ENV MQ_APPLICATION_22 "新线子系统/com.luckyun.tnrms/all"
ENV MQ_APPLICATION_23 "人员子系统/com.luckyun.pnms/all"
ENV MQ_APPLICATION_24 "施工子系统/com.luckyun.cims/all"
ENV MQ_APPLICATION_25 "数据中台/com.luckyun.dydoc.interfaceplat/023405250820658815,053868124024016394"
ENV MQ_APPLICATION_26 "动态表单/com.luckyun.dydoc/023405250820658815,053868124024016394"
ENV MQ_APPLICATION_27 ""
ENV MQ_APPLICATION_28 ""
ENV MQ_APPLICATION_29 ""
ENV MQ_APPLICATION_30 ""
ENV MQ_APPLICATION_31 ""
ENV MQ_APPLICATION_32 ""
ENV MQ_APPLICATION_33 ""
ENV MQ_APPLICATION_34 ""
ENV MQ_APPLICATION_35 ""
ENV MQ_APPLICATION_36 ""
ENV MQ_APPLICATION_37 ""
ENV MQ_APPLICATION_38 ""
ENV MQ_APPLICATION_39 ""
ENV MQ_APPLICATION_40 ""
ENV MQ_APPLICATION_41 ""
ENV MQ_APPLICATION_42 ""
ENV MQ_APPLICATION_43 ""
ENV MQ_APPLICATION_44 ""
ENV MQ_APPLICATION_45 ""
ENV MQ_APPLICATION_46 ""
ENV MQ_APPLICATION_47 ""
ENV MQ_APPLICATION_48 ""
ENV MQ_APPLICATION_49 ""
ENV MQ_APPLICATION_50 ""

# 启动服务
CMD ["python3", "LuckMqMain.py"]